import request from '@/utils/request'

// 查询商品活动列表
export function listGoodsActivity(query) {
  return request({
    url: '/basic/data/goodsActivity/list',
    method: 'get',
    params: query
  })
}

// 新增商品活动
export function addGoodsActivity(data) {
    return request({
      url: '/basic/data/goodsActivity/add',
      method: 'post',
      data: data
    })
}

// 修改商品活动
export function updateGoodsActivity(data) {
    return request({
      url: '/basic/data/goodsActivity/edit',
      method: 'post',
      data: data
    })
}

// 查询商品活动详细
export function getGoodsActivity(id) {
    return request({
        url: '/basic/data/goodsActivity/getInfo/' + id,
        method: 'get',
    })
}

// 查询商品价目表信息
export function getPriceList() {
    return request({
      url: '/basic/data/goodsActivity/getPriceList',
      method: 'get',
    })
  }

  // 查询商品分类信息
export function getGoodsTypeList() {
    return request({
      url: '/basic/data/goodsActivity/getGoodsTypeList',
      method: 'get',
    })
  }